<template>
  <div class="home">
    <el-container>
      <el-header>
        <HLeft />
      </el-header>
      <el-container>
        <el-aside width="fit-content">
          <Aside></Aside>
        </el-aside>
        <el-main>
          <Breadcrumb></Breadcrumb>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
// 顶部内容
import HLeft from "./components/Header.vue";
// 左侧菜单
import Aside from "./components/Aside.vue";
import { AsideModeStore } from "@/store/Aside";
import Breadcrumb from "@/components/Breadcrumb .vue";

const AsideModel = AsideModeStore();
</script>

<style scoped lang="less">
.home {
  height: 100%;
  :deep(.el-header) {
    height: 70px;
    padding: 0;
    background-color: #409eff;
  }
  :deep(.el-aside),
  :deep(.el-main) {
    height: calc(100vh - 70px);

    &::-webkit-scrollbar {
      width: 0;
    }
  }
  :deep(.el-menu-vertical-demo:not(.el-menu--collapse)) {
    width: 200px;
    min-height: 400px;
  }
  :deep(.el-aside) {
    background-color: #304156;
  }
}
</style>
